package fm.dongman.animefm.view.adapter;
import android.app.Fragment;
import android.app.FragmentManager;
import android.support.v13.app.FragmentPagerAdapter;

import java.util.List;

/**
 * Created by Administrator on 2017/10/19.
 */

public class UserDetailsAdapter extends FragmentPagerAdapter {

    private List<String> mListTitle;
    private List<Fragment> mListFragment;

    public UserDetailsAdapter(FragmentManager fm, List<String> Title, List<Fragment> fragments) {
        super(fm);
        this.mListFragment=fragments;
        this.mListTitle=Title;
    }



    @Override
    public Fragment getItem(int position) {
        return mListFragment.get(position);
    }

    @Override
    public int getCount() {
        return mListFragment.size();
    }

    @Override
    public CharSequence getPageTitle(int position) {
        return mListTitle.get(position);
    }
}
